package cn.net.dpi.shp.controller;

import cn.net.dpi.core.api.vo.Response;
import cn.net.dpi.shp.service.ParseService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 箭头 前端控制器
 * </p>
 *
 * @author ake
 * @since 2024-12-25
 */
@RestController
@RequestMapping("/parse")
public class ParseController {

    @Resource
    private ParseService parseService;

    @PostMapping
    public Response queryByRange(@RequestParam("file") String file) {
        return Response.success(parseService.parserShpFile(file));
    }
}
